<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户输入信息</title>
</head>

<body>
    <script>
        let names = prompt("请输入你的名字：");
        let age = prompt("请输入你的年龄：");
        let sex = prompt("请输入你的性别：");
        let age1 = prompt("你现在多少岁了?");

        if (age1) {
            alert("据我估计,五年后，你可能" + (parseInt(age1) + 5) + "岁了");
        }

        console.log("用户的名字：" + names);
        console.log("用户的年龄：" + age);
        console.log("用户的性别：" + sex);
    </script>
</body>

</html>